import Request from "../../core";
// 地址列表
export const getAddressList = (data) => {
    return Request.get("/mall/mobile/address/list", data, {
        isLoading: false,
    });
};
// 设置默认地址
export const setDefaultAddress = (data) => {
    return Request.get("/mall/mobile/address/setDefaultAddress", data, {
        isLoading: false,
    });
};
// 新增地址
export const addressAdd = (data) => {
    return Request.post("/mall/mobile/address/add", data, {
        isLoading: false,
    });
};
// 删除地址
export const addressDelete = (data) => {
    return Request.delete(`/mall/mobile/address/delete?addressId=${data.addressId}`, data, {
        isLoading: false,
    });
};
// 编辑地址
export const addressUpdate = (data) => {
    return Request.post("/mall/mobile/address/update", data, {
        isLoading: false,
    });
};
// 获取手机号
export const getPhone = (data) => {
    return Request.post("/wx/user/base/phone", data, {
        isLoading: false,
    });
};